echo f | xcopy /Y .\Bin\Bugreport.dll .\Publish\Bugreport.dll
echo f | xcopy /Y .\Bin\Bugreport.exe .\Publish\Bugreport.exe
echo f | xcopy /Y .\Bin\Client.exe .\Publish\Client.exe
echo f | xcopy /Y .\Bin\Update.exe .\Publish\Update.exe
echo f | xcopy /Y .\Bin\Daemon.exe .\Publish\Daemon.exe
echo f | xcopy /Y .\Bin\config.ini .\Publish\config.ini
echo f | xcopy /Y .\Bin\JSONManager.dll .\Publish\JSONManager.dll
echo f | xcopy /Y .\Bin\LogManager.dll .\Publish\LogManager.dll
echo f | xcopy /Y .\Bin\LuaManager.dll .\Publish\LuaManager.dll
echo f | xcopy /Y .\Bin\PluginManager.dll .\Publish\PluginManager.dll
echo f | xcopy /Y .\Bin\UpdateManager.dll .\Publish\UpdateManager.dll
echo f | xcopy /Y .\Bin\Plugins\PluginBase.dll .\Publish\Plugins\PluginBase.dll
echo f | xcopy /Y .\Bin\Plugins\PluginNet.dll .\Publish\Plugins\PluginNet.dll
echo f | xcopy /Y .\Bin\Plugins\PluginSoft.dll .\Publish\Plugins\PluginSoft.dll
echo f | xcopy /Y .\Bin\Plugins\PluginSQLite.dll .\Publish\Plugins\PluginSQLite.dll
echo f | xcopy /Y .\Bin\Plugins\PluginSystem.dll .\Publish\Plugins\PluginSystem.dll
echo f | xcopy /Y .\Bin\Scripts\Main.lua .\Publish\Scripts\Main.lua

upx --best Publish\Bugreport.dll
upx --best Publish\Bugreport.exe
upx --best Publish\Client.exe
upx --best Publish\Update.exe
upx --best Publish\Daemon.exe
upx --best Publish\JSONManager.dll
upx --best Publish\LogManager.dll
upx --best Publish\LuaManager.dll
upx --best Publish\PluginManager.dll
upx --best Publish\UpdateManager.dll
upx --best Publish\Plugins\PluginBase.dll
upx --best Publish\Plugins\PluginNet.dll
upx --best Publish\Plugins\PluginSoft.dll
upx --best Publish\Plugins\PluginSQLite.dll
upx --best Publish\Plugins\PluginSystem.dll